home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group01a.txt / 000067_icon-group-sender _Tue Jun 27 12:49:32 2000.msg < prev    next >
Internet Message Format  |  2002-01-03  |  1KB

  1. Return-Path: <icon-group-sender>
  2. Received: (from root@localhost)
  3.     by baskerville.CS.Arizona.EDU (8.9.1a/8.9.1) id MAA14033
  4.     for icon-group-addresses; Tue, 27 Jun 2000 12:49:15 -0700 (MST)
  5. Message-Id: <200006271949.MAA14033@baskerville.CS.Arizona.EDU>
  6. Date: Tue, 27 Jun 2000 10:31:35 -0700 (MST)
  7. From: Gregg Townsend <gmt@baskerville.CS.Arizona.EDU>
  8. To: Steve_Graham@labcorp.com, icon-group@optima.CS.Arizona.EDU
  9. Subject: Re: Permutations/Combinations
  10. Errors-To: icon-group-errors@optima.CS.Arizona.EDU
  11. Status: RO
  12. Content-Length: 907
  13.  
  14.     From: "Steve Graham" <Steve_Graham@labcorp.com>
  15.     
  16.     We have a brain teaser floating around work whose object is to find all
  17.     6-letter English words which can be made from the letters A, E, R, B,M
  18.     and L.  I'm sure you can do this with Icon's reversible assignment,
  19.     but I don't understand the latter.  Can anyone help me?
  20.  
  21. If you have a list of English words, an easy solution to the brain teaser
  22. is to run the list through this filter:
  23.  
  24.     procedure main()
  25.        local word
  26.        while word := read() do
  27.           if *word = 6 & cset(map(word)) == 'aerbml' then
  28.          write(word)
  29.     end
  30.  
  31. Of course, I have managed to avoid entirely your question about
  32. reversible assignment.
  33.     
  34.    ---------------------------------------------------------------------------
  35.    Gregg Townsend         Staff Scientist      The University of Arizona
  36.    gmt@cs.arizona.edu     Computer Science     Tucson, Arizona, USA
  37.  
  38.